// bool compare(matrix &m1, matrix &m2) { / ... / }
// vector<int>::iterator change_val(int, vector<int>::iterator) { /.../ }